package com.wuxuan.javabase_homework.homework2;

/**
 * 学生类
 */
public class Student {
    private String name;
    private int age;
    private double chineseScore;
    private double mathScore;
    private double averageScore;
    private double totalScore;
    private String level;

    public Student() {
    }

    public Student(String name, int age, double chineseScore, double mathScore) {
        this.name = name;
        this.age = age;
        this.chineseScore = chineseScore;
        this.mathScore = mathScore;
    }

    public Student(String name, int age, double chineseScore, double mathScore, double averageScore, double totalScore, String level) {
        this.name = name;
        this.age = age;
        this.chineseScore = chineseScore;
        this.mathScore = mathScore;
        this.averageScore = averageScore;
        this.totalScore = totalScore;
        this.level = level;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public double getChineseScore() {
        return chineseScore;
    }

    public void setChineseScore(double chineseScore) {
        this.chineseScore = chineseScore;
    }

    public double getMathScore() {
        return mathScore;
    }

    public void setMathScore(double mathScore) {
        this.mathScore = mathScore;
    }

    public double getAverageScore() {
        return averageScore;
    }

    public void setAverageScore(double averageScore) {
        this.averageScore = averageScore;
    }

    public double getTotalScore() {
        return totalScore;
    }

    public void setTotalScore(double totalScore) {
        this.totalScore = totalScore;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", chineseScore=" + chineseScore +
                ", mathScore=" + mathScore +
                ", averageScore=" + averageScore +
                ", totalScore=" + totalScore +
                ", level='" + level + '\'' +
                '}';
    }
}
